package gao.xiaolei.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.time.LocalDateTime;
import java.util.List;

@Data
public class TestRunOutDto {

    private String id;// 主键Id

    private String title;// 标题

    private String author;// 编写者

    private String authorId;//编写者Id

    private String status;// 状态

    private Integer childrenCount;//该节点的儿子数量

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createDate;// 创建的日期

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime updateDate;// 更新的日期

    private String describe;//测试集描述或者测试执行描述

    private Integer priority;// 测试执行的优先级

    private String testDesign;//执行的测试计划

    private String testDesignName;///执行的测试计划的昵称

    private List<TestRunLogDto> testRunLogDto;//此测试计划执行的记录

    private Integer grade;//复制查测试需求的分数

    public TestRunOutDto(String title,String author,String authorId, String describe,LocalDateTime createDate, LocalDateTime updateDate,Integer grade) {
        this.title=title;
        this.author = author;
        this.authorId=authorId;
        this.describe = describe;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.grade=grade;
    }

    public TestRunOutDto(String title, String author, String authorId,String status, LocalDateTime createDate, LocalDateTime updateDate, String describe, Integer priority, String testDesign,String testDesignName, List<TestRunLogDto> testRunLogDto,Integer grade) {
        this.title = title;
        this.author = author;
        this.authorId=authorId;
        this.describe=describe;
        this.status = status;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.describe = describe;
        this.priority = priority;
        this.testDesign = testDesign;
        this.testDesignName=testDesignName;
        this.testRunLogDto = testRunLogDto;
        this.grade=grade;
    }

    public TestRunOutDto() {
    }
}
